home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / HighScoreTable.h < prev    next >
Text File  |  1995-06-12  |  910b  |  37 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import <machkit/senderIsInvalid.h>     // superclass
  4. #import "HighScoreProtocol.h"
  5.  
  6. #define MAXSCORES 10    // max # of high scores
  7.  
  8. @interface HighScoreTable:List <NXTransport>
  9. {
  10.     id  emptySlot;        // empty high score slot (prototype)
  11.     id  title;            // a DAYString name
  12.     int tag, maxHighScores, maxScoresPerPlayer;
  13. }
  14.  
  15. - init;                // designated initializer
  16. - (int)maxHighScores;
  17. - setMaxHighScores:(int)newMax;
  18. - (int)maxScoresPerPlayer;
  19. - setMaxScoresPerPlayer:(int)newMax;
  20. - (BOOL)samePlayer:slot1 :slot2;
  21. - (int)numEntriesByPlayer:aSlot;
  22. - (int)lowestSlotByPlayer:aSlot;
  23. - (int)tag;
  24. - setTag:(int)newTag;
  25. - (const char *)stringValue;
  26. - setStringValue:(const char *)aString;
  27. - setEmptySlotClass:classObject;
  28. - (BOOL)addSlot:newSlot;
  29. - (BOOL)addSlot:newSlot where:(int *)w;
  30. - objectAt:(unsigned)index;
  31. - free;
  32. - copy;
  33. - read:(NXTypedStream *)stream;
  34. - write:(NXTypedStream *)stream;
  35.  
  36. @end        
  37.